package com.brillilab.dao.mapper.team;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.team.Team;
import com.brillilab.domain.po.team.TeamMember;
import com.brillilab.domain.vo.team.TeamSelectorVo;
import com.brillilab.domain.vo.team.TeamVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 研究团队表 Mapper 接口
 * </p>
 *
 * @author WuMenghao
 * @since 2019-03-02
 */
public interface TeamMapper extends BaseMapper<Team> {

    List<TeamVo> selectTeamByLabId(@Param("labId") Long labId,@Param("ownerId") Long ownerId);

    //修改团队状态为已删除
    int updateTeamIsDelete(@Param("teamId") Long teamId);

    Long selectLeaderIdByLabMemberId(@Param("labMemberId") Long labMemberId);

	Team selectByLabMemberId(@Param("labMemberId")Long labMemberId);

    List<TeamSelectorVo> selectTeamSelector(@Param("labId") Long labId);
}
